#ifndef DATABASEMANAGER_H
#define DATABASEMANAGER_H

#include <QtSql/QSqlDatabase>

class DataBaseManager
{
public:
    static DataBaseManager *getInstance();

    void close();
    void exec(QString query);

    void openTransaction();
    void endTransaction();
private:
    QSqlDatabase db;

    DataBaseManager();

    bool setDB(const char *name);
};

#endif // DATABASEMANAGER_H
